/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package io;

import graph.NetEdge;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;


import route.Route;

import com.vividsolutions.jts.geom.Coordinate;

/**
 * 
 * @author ceikute, xiaohui
 */
public class Data {

	Database db;

	public Data() {
		db = new Database();
	}

	// public ArrayList<DataPoint> getNextDataPoint() {
	//
	// }
	public static String fixDateOrTime(int time) {
		String t_str = Integer.toString(time);
		if (t_str.length() < 2) {
			t_str = "0" + t_str;
		}
		return t_str;
	}

	public List<Route> getIntersectedRoutes(String routeTable, NetEdge edge) {
		
		return null;
	}
}
